var arr=[{x:-64,s:0.83,z:1},
    {x:140,s:1,z:2},
    {x:338,s:0.83,z:1},
    {x:960,s:0.83,z:1},
    {x:960,s:0.83,z:1},  
    {x:960,s:0.83,z:1}]
function tu(){
var qie=document.querySelectorAll('.swiper-slide')
qie.forEach(function(item,i){
   item.style.transform='translateX('+arr[i].x+'px) scale('+arr[i].s+')'
   item.style.zIndex=arr[i].z

})}
tu()
function weiyi(){
   var temp=arr.pop()
   arr.unshift(temp)
   tu()
}
document.querySelector('.swiper-next').onclick=weiyi
function weiyi2(){
    var temp=arr.shift()
    arr.push(temp)
    tu()
}
document.querySelector('.swiper-prev').onclick=weiyi2
document.querySelector('.swiper-wrapper').onclick=function(event){
       event=event||window.event
      target=event.target||event.srcElement
      //console.log(target.parentNode.style.transform.includes("338"))
     if(target.parentNode.style.transform.includes(338)){
        weiyi()
     } 
     if(target.parentNode.style.transform.includes(64)){
        weiyi2()
     } 





}